"""
@Time ： 2021/10/24 16:57
@Auth ： ChenZhangKun
"""
try:

    num = int(input("请输入一个整数"))

    result = 8 / num

    print(result)
    # 捕获异常
except ZeroDivisionError as zd:
    print("除以0的错误")
except ValueError as ve:
    print("值的类型不匹配")
